import { defineComponent } from "vue";
import { useRoute, useRouter } from "vue-router";

export default defineComponent({
  setup() {
    const route = useRoute();
    const router = useRouter();
    const { query }: any = route;
    router.replace({
      name: query.name,
      query: JSON.parse(query.query),
      params: JSON.parse(query.params),
    })
    return () => (
      <div></div>
    )
  }
})